package models.venue.fitness;

import models.BaseModel;
import models.venue.policy.Policy;

import javax.persistence.*;

/**
 * 健身类型收费策略
 * Created by hanbin on 17/4/5.
 */
@Entity
@Table(name="fitnesses_policies")
public class FitnessPolicy extends BaseModel {

    /**
     * 健身类型
     */
    @JoinColumn(name="fitnesses_id")
    @ManyToOne
    public Fitnesses fitnesses;

    /**
     * 价格策略
     */
    @JoinColumn(name="policy_id")
    @ManyToOne
    public Policy policy;

}
